<!DOCTYPE html>
html(lang="en")
    head
        include ../includes/common/meta.pug
        title 车行家 - 最放心的二手车买卖平台
    body
        - 
            navActive = navActive || 'sc'
            type = type || ''
            name = name || '创业项目'
            href = href || '/sc_search'
            list = data && data.list || [
                {
                    "id": 1,
                    "createdTime": 1551516976000,
                    "modifiedTime": 1551767569000,
                    "name": "测试2",
                    "idCardNumber": "121456123123132",
                    "idCardPhotoUrl": "6EA4F735-920E-4DD5-A361-3D853D110993.png",
                    "contactPhoneNumber": "13245678910",
                    "demand": "创业需求",
                    "fundDemand": "10000万",
                    "description": "二手车创业项目"
                },
                {
                    "id": 2,
                    "createdTime": 1551666999000,
                    "modifiedTime": 1551767537000,
                    "name": "June",
                    "idCardNumber": "520119299380830",
                    "idCardPhotoUrl": "DB3C6366-BF75-4BD1-8F94-F9CD851F82CA.png",
                    "contactPhoneNumber": "18275119573",
                    "demand": "123",
                    "fundDemand": "234",
                    "description": "hoho"
                }
            ]

        include ../includes/common/common.pug
        include ../includes/header/sc-header.pug

        include ../includes/sc-banner/sc-banner.pug

        +breadcrumb([{name: '双创', href: '/'}, {name, href}])

        mixin investItem (data)
            .sc-search-result-item
                .item-content
                    .item-title=data.investmentPreference
                    .item-info
                        h3 投资金额
                        strong=data.investmentAmount
                    .item-date
                        +dateFormat(data.createdTime)
        mixin pioneeingItem (data)
            .sc-search-result-item
                .item-content
                    .item-title=data.description
                    .item-info
                        h3 需要金额
                        strong=data.fundDemand
                    .item-date
                        +dateFormat(data.createdTime)

        .sc-search-result
            .layui-container
                .item-wrap
                    each item in list 
                        if (type === 'invest')
                            +investItem(item)
                        else 
                            +pioneeingItem(item)

        include ../includes/footer/footer.pug